﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Domain.Repositories;
using Domain.Entities;
using Database.NHibernateInterface;

namespace Database.Repositories
{
   public class CourseRepository:BaseRepository<Course>, ICourseRepository
    {
       public CourseRepository(ISessionProvider sessionProvider)
           : base(sessionProvider)
       {
       }

       public override IEnumerable<Course> GetAll()
       {
           return base.GetAll().OrderBy(x => x.NumberInOrder);
       }
    }
}
